package com.showtao.front.dto;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.showtao.front.enumeration.OldProductCategory;

public class OldProductDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "{product.id.not.blank}")
    private String id;

    @NotBlank(message = "{product.category.not.blank}")
    private OldProductCategory category;

    @NotBlank(message = "{product.name.not.blank}")
    @Size(min = 1, max = 100, message = "{product.name.length.range}")
    private String name;

    @Max(value = 200, message = "{product.description.length..max}")
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public OldProductCategory getCategory() {
        return category;
    }

    public void setCategory(OldProductCategory category) {
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
